home *** CD-ROM | disk | FTP | other *** search
- regc4f( 5, %daycolor_r, %daycolor_g, %daycolor_b, %daycolor_a )
- regc4f( 7, %ambient_r, %ambient_g, %ambient_b, %ambient_a )
- pshader("
-
- ;#include <consts.psh>
- ps_1_1
-
- ;def c5, DAYCOLOR
- ;def c7, AMBIENT
-
- tex t0 ;RGB=kolor terenu, A=lightmapa terenu
- tex t1 ;detal terenu
- tex t2 ;Chmury
- tex t3 ;water deep
-
- mul r0, t0, t1 ;kolor * detal
-
- mul r1, t0.a, 1-t2.a ;lightmapa terenu * Chmury
-
- mad_sat r1, r1, c7, c7.a ;skalowanie oswietlenia (dodanie ambientu)
-
- mul r1, r1, c5 ;wymnozenie oswietlenia przez kolor pory dnia/swiatla
-
- mul r0.rgb, r0, r1 ;mnozymy kolory przez oswietlenie
- +mov r0.a, t3.a
-
- ")
-
-